package day2Test2;

import java.io.Serializable;
import java.util.ArrayList;

//借书卡 属性
public class Card implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7070343040263809614L;
	private int id;   //编号	
	private  String name; //持卡人姓名
	private ArrayList<String> record; // 借阅记录
	private int num =0;//正在借阅的书籍数量
    private ArrayList<Book> borrow;//正在借阅的书籍
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ArrayList<String> getRecord() {
		return record;
	}
	public void setRecord(ArrayList<String> record) {
		this.record = record;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public ArrayList<Book> getBorrow() {
		return borrow;
	}
	public void setBorrow(ArrayList<Book> borrow) {
		this.borrow = borrow;
	}
	@Override
	public String toString() {
		return "Card [id=" + id + ", name=" + name + ", record=" + record + ", num=" + num + ", borrow=" + borrow + "]";
	}
	public Card(int id, String name, ArrayList<String> record, int num, ArrayList<Book> borrow) {
		super();
		this.id = id;
		this.name = name;
		this.record = record;
		this.num = num;
		this.borrow = borrow;
	}
	public Card() {
		super();
		// TODO Auto-generated constructor stub
	}
	
    
}
